import request from "@/utils/request";

// 查询订单列表
export function orderList(query) {
  return request({
    url: "/order/listPage",
    method: "get",
    params: query
  });
}
// 订单发货
export function deliver(data) {
  return request({
    url: "/order/deliver",
    method: "post",
    data: data,
  });
}
// 发货信息修改
export function changeDeliver(data) {
  return request({
    url: "/order/materialFlow",
    method: "post",
    data: data,
  });
}



// 查询商家订单列表
export function storeListPage(query) {
  return request({
    url: "/order/storeListPage",
    method: "get",
    params: query
  });
}

// 查询快递公司列表
export function expressNameVoList(query) {
  return request({
    url: "/order/getExpressNameVo",
    method: "get",
    params: query
  });
}

// 手工录入订单
export function addOrder(data) {
  return request({
    url: "/order/taxationForm",
    method: "post",
    data
  });
}

//订单结算
export function settleAccounts(orderId) {
  return request({
    url: `/order/settlement/${orderId}`,
    method: "post"
  });
}
